home *** CD-ROM | disk | FTP | other *** search
- // DEMO
-
- // Thomas Hagen
-
- // INCLUDES
-
- #include <stdlib.h>
- #include <conio.h>
- #include <new.h>
- #include <stdio.h>
-
- #include "zoom.h"
- #include "scroll.h"
- #include "vx.h"
- #include "timer.h"
- #include "keyscan.h"
- #include "comsim.h"
-
- // GLOBAL VARS
-
- // kbd
- void interrupt newkbdhandler(...);
- void interrupt (*oldkbdhandler)(...);
- byte *keypressed;
- keyscan_C kbd;
-
- // screen
- vx_C vx;
-
- // timer
- timer_C timer;
-
- // OUT_OF_MEM
-
- void out_of_mem(void)
- {
- _AX=3;
- VGAINT;
- printf("Sorry - not enough conventional memory.");
- exit(1);
- }
-
- // MAIN
-
- void main(void)
- {
- set_new_handler(out_of_mem);
- #if SCROLLER
- scroll();
- #endif
- #if ZOOM
- zoom();
- #endif
- #if VOXEL
- float fps=comsim();
- #endif
- _AX=3;
- VGAINT;
- printf(
- "RFV-demo by Thomas Hagen 1993.\n\n"
- "That's all folks!\n\n"
- );
-
- }
-